//package com.alibaba.citrus.cr.ultron;
//
//import com.alibaba.astore.protocol.ultronage.bootstrap.UltronFlowEngine;
//import org.springframework.beans.BeansException;
//import org.springframework.context.ApplicationContext;
//import org.springframework.context.ApplicationContextAware;
//import org.springframework.stereotype.Component;
//
//@Component
//public class UltronRenderFactory implements ApplicationContextAware {
//
//    private static UltronFlowEngine ultronFlowEngine;
//
//    private static ApplicationContext applicationContext;
//
//    public static UltronFlowEngine getUltronFlowEngine() {
//        if (ultronFlowEngine == null) {
//            ultronFlowEngine = applicationContext.getBean(UltronFlowEngine.class);
//        }
//        return ultronFlowEngine;
//    }
//
//    @Override
//    public void setApplicationContext(ApplicationContext context) throws BeansException {
//        applicationContext = context;
//    }
//}
